package 
{
	
	/**
	 * ...
	 * @author Guido
	 */
	public class SudokuMatrix {
		private var array : ArrayWrapper;
		
		public function SudokuMatrix() {
			array = new ArrayWrapper(9);
			for (var row : int = 1; row < 10; row++) {
				array.put(row, new ArrayWrapper(9));
			}
		}
		public function get(row : int, column : int) : Block {
			return (array.get(row).get(column) as Block)
		}
		public function put(row : int, column : int, block : Block) : void {
			array.get(row).put(column, block);
		}
		public function compareToMatrix(m : SudokuMatrix) : Boolean {
			var equal : Boolean = true;
			for (var row : int = 1; (row < 10) && (equal = false); row++) {
				for (var col : int = 1; (col < 10) && (equal = false); col++) {
					if (m.get(row, col).getNumber() != get(row, col).getNumber()) {
						equal = false; 
					}
				}
			}
			return equal;
		}
	}
	
}